package com.jh.shuibowen;

import androidx.appcompat.app.AppCompatActivity;

import android.graphics.Color;
import android.graphics.Outline;
import android.graphics.Path;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.ViewOutlineProvider;

import java.sql.Array;
import java.util.ArrayList;

public class MainActivity extends AppCompatActivity {

    Handler mHandler = new Handler();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        getWindow().setStatusBarColor(Color.parseColor("#333333"));
        getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
        getWindow().setNavigationBarColor(Color.parseColor("#333333"));

        ShuiBoView shuiBoView = findViewById(R.id.shui_bo_view);

        mHandler.postDelayed(new Runnable() {
            @Override
            public void run() {
                shuiBoView.setProp(29.63f);
            }
        }, 1000);
        mHandler.postDelayed(new Runnable() {
            @Override
            public void run() {
                shuiBoView.setProp(43.45f);
            }
        }, 5000);
        mHandler.postDelayed(new Runnable() {
            @Override
            public void run() {
                shuiBoView.setProp(85.96f);
            }
        }, 8000);
        mHandler.postDelayed(new Runnable() {
            @Override
            public void run() {
                shuiBoView.setProp(100.00f);
            }
        }, 10000);
    }
}